﻿/*
 * Author: .net follower (http://dotnetfollower.com)
 * Url: http://bdcrequestlib.codeplex.com/
 * Title: SharePoint Bdc Requests
 * Copyright: � 2012 .net follower 
 * Usage: software is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */

namespace SharePointBdcRequests
{
    public class DataReceiver<T> where T : class
    {
        private T _data;

        public bool Received { get; private set; }
        public T Data
        {
            get { return _data; }
            set { _data = value; Received = true; }
        }

        public void Reset()
        {
            _data    = null;
            Received = false;
        }
    }

    public enum SearchValueModes
    {
        Equals,
        Contains,
        StartsWith,
        EndsWith
    }
}
